﻿@using GoodMan.Infrastructure.Entities.Entity;
@{
    Layout = "~/Views/Shared/_Main.cshtml";
    ItemListBox<Information> pubinfoList = ViewBag.PubInfo;
}

<div class="container">
<ul class="breadcrumb">
    <li><a href="#">首页</a> <span class="divider">/</span></li>
    <li class="active">信息中心</li>
</ul>
<div class="container-fluid" style="width:100%; padding-left:0px; ">
  <div class="row-fluid" style="border:solid 1px #cccccc; ">
     <div class="span12">
     <div class="widget-box">
            <div class="widget-content nopadding" style="border-bottom:solid 1px #cccccc; font-size:12px;">
                <table class="table data-table">
					<thead>
					<tr style="font-family:幼圆; " class="breadcrumb">
					    <th width="25%">职位名称</th>
					    <th width="20%">招聘单位</th>
                        <th>薪资(元/天)</th>
					    <th>工作地点</th>
                        <th>有效期</th>
					    @*<th><a href="/Home/PubInfoList?oper=1">发布时间</a></th>
                        <th><a href="/Home/PubInfoList?oper=2">点击率</a></th>*@
                        <th>发布时间</th>
                        <th>点击率</th>
					</tr>
					</thead>
					<tbody>
                    @{
                        if (pubinfoList != null && pubinfoList.Data != null && pubinfoList.Data.Count > 0)
                        {
                            foreach (var pubinfo in pubinfoList.Data)
                            {
                                <tr class="gradeX">
					                <td><a href="/Home/InfoDetails?id=@pubinfo.Id" target="_blank" style="color:Blue;">@pubinfo.Title</a></td>
					                <td>@pubinfo.RecruitDep</td>
                                    <td>@pubinfo.SalaryLevel</td>
					                <td>@pubinfo.WorkArea</td>
                                    <td>@pubinfo.ExpireDate.Subtract(pubinfo.PubDate).Days 天</td>
                                    <td>@pubinfo.PubDate</td>
					                <td>@pubinfo.CTR</td>
					            </tr>
                            }
                        }
                        else
                        {
                            <tr class="gradeX"><td colspan="12" align="center">没有找到任何数据！</td></tr>
                        }
                    }			 
					</tbody>
			    </table>  	
			</div>
            @Html.Raw(pubinfoList.PageItemSegment)  
        </div>
     </div>
  </div>
  @{
        if (ViewBag.isSuccess!=null){
            if (ViewBag.isSuccess) { 
                <div class="Success">操作成功！</div>
            }else{
                <div class="Error">操作失败！</div>
            }
        }
    }
</div>
</div>
